Skip to content

ci: Refactor Docker workflow#285

Merged
Roopan-Microsoft merged 1 commit into
devfrom
psl-refactor-docker-workflow
Jun 16, 2026
Merged

ci: Refactor Docker workflow#285
Roopan-Microsoft merged 1 commit into
devfrom
psl-refactor-docker-workflow

Conversation

@Vamshi-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

This pull request updates the GitHub Actions workflows to improve how Azure Container Registry (ACR) credentials are managed and simplifies the Docker build workflow. The main changes involve switching from using secrets to using variables for the ACR login server, updating the Docker image build and push steps to use these variables, and cleaning up workflow inputs and conditions.

Azure Container Registry (ACR) credential management:

  • Updated all references to the ACR login server from secrets.ACR_TEST_LOGIN_SERVER to vars.ACR_TEST_LOGIN_SERVER in the Linux and Windows deployment workflows (job-deploy-linux.yml, job-deploy-windows.yml) and in all Docker build and push steps in job-docker-build.yml [1] [2] [3] [4] [5] [6] [7].

Workflow input and trigger simplification:

  • Removed unused workflow inputs (trigger_type, build_docker_image) from job-docker-build.yml and updated the workflow to be triggered directly by workflow_dispatch.
  • Removed the conditional check for inputs.trigger_type and inputs.build_docker_image in the deploy-orchestrator.yml workflow, simplifying the job trigger logic.

Docker build job improvements:

  • Updated the Docker build job name for clarity and added required permissions for the workflow.
  • Improved ACR login logic by extracting the registry name from the login server variable before logging in with Azure CLI.

These changes make the workflows more maintainable, secure, and easier to trigger and manage.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the GitHub Actions Docker build/push reusable workflow and related deployment workflows to use repository/environment variables (instead of secrets) for the ACR login server, while simplifying how the Docker build job is triggered.

Changes:

  • Updated workflow references from secrets.ACR_TEST_LOGIN_SERVER to vars.ACR_TEST_LOGIN_SERVER.
  • Removed workflow_call inputs from job-docker-build.yml, added workflow_dispatch, and added explicit OIDC permissions.
  • Adjusted ACR login in job-docker-build.yml to derive the registry name from the login server before calling az acr login.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/job-docker-build.yml Removes workflow-call inputs, adds manual dispatch + permissions, switches ACR login server to vars and refines az acr login.
.github/workflows/job-deploy-windows.yml Switches ACR login server reference to vars for AZD env configuration.
.github/workflows/job-deploy-linux.yml Switches ACR login server reference to vars for AZD env configuration.
.github/workflows/deploy-orchestrator.yml Removes passing inputs into job-docker-build.yml but still gates the job via inputs.* condition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/job-docker-build.yml
Comment thread .github/workflows/job-deploy-linux.yml
Comment thread .github/workflows/job-deploy-windows.yml
Comment thread .github/workflows/deploy-orchestrator.yml
@Roopan-Microsoft Roopan-Microsoft merged commit cbf1c5c into dev Jun 16, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants